package org.shop.service.impl;

import java.util.List;
import java.util.Map;

import org.shop.dao.OrderGoodsMapper;
import org.shop.entity.OrderGoods;
import org.shop.service.OrderGoodsService;
import org.shop.service.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderGoodsServiceImpl extends BaseServiceImpl<OrderGoods, Long> implements OrderGoodsService {

	@Autowired
    private OrderGoodsMapper orderGoodsMapper;

	@Override
	public List<Map<String,Object>> getOrderGoodsList(Map<String, Object> params){
		return orderGoodsMapper.getOrderGoodsList(params);
	}

	@Override
	public void updateStateByGoodsId(OrderGoods orderGoods) {
		
		orderGoodsMapper.updateStateByGoodsId(orderGoods);
	}
}
